// This file helps bridge Material UI (React) components with Preact
import { createElement, createContext, Fragment } from 'preact';
import { forwardRef } from 'preact/compat';

// Re-exports
export { createElement, createContext, Fragment, forwardRef };

// Fix incompatibilities between React's JSX namespace and Preact's
declare global {
  namespace JSX {
    interface IntrinsicAttributes {
      children?: any;
    }
  }
}

// Add necessary type declarations to make Material UI work with Preact
declare module 'preact' {
  namespace JSX {
    interface IntrinsicAttributes {
      css?: any;
    }
  }
} 